<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: 15c
  Date: 2017/6/7
  Time: 20:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<jsp:include page="head.jsp"/>
<div style="height: auto;width: 100%;text-align: center">
  <div style="margin:5% auto">
    <h2>添加课程信息</h2>
    <h6 style="color: red">注：课程号不可重复</h6>
    <sf:form action="${pageContext.request.contextPath}/students/course_add" method="post">
      <p style="font-weight: bold">课程号:<input type="text" name="cno"  path="cno" style="margin-top: 1%"/><sf:errors path="cno"/></p>
      <span style="color: #aa001b;border:none;font-weight: bold;">${type}</span>
      <p style="font-weight: bold">课程名:<input type="text" name="cname" path="cname" style="margin-top: 1%" /><sf:errors path="cname"/></p>
      <p style="font-weight: bold">学分:<input type="text" name="ccredit" path="ccredit" style="margin-top: 1%" /><sf:errors path="ccredit"/></p>
      <input type="submit" value="提交"  style="border:3px solid #ccc;background:#cccccc;margin-top: 1%">
      <a href="${pageContext.request.contextPath}/index"><input type="button" value="取消"  style="border:3px solid #ccc;background:#cccccc;margin-left: 2%;margin-top: 1%"></a>
    </sf:form>
  </div>
</div>
</body>
</html>
